import Vue from 'vue'
import Router from 'vue-router'
// 引入其他页面
const Index = r => require.ensure([], () => r(require('@/page/index/index')), 'Index')  ;   //主页
const List = r => require.ensure([], () => r(require('@/page/list/list')), 'List')    ; //主页



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/index',
      name: 'home',
      component: Index,
    },
    {
      path: '/list/:table',
      name: 'list',
      component: List
    }
  ]
})
